package com.heima.behavior.controller;

import com.heima.behavior.dto.ReadBehaviorDto;
import com.heima.behavior.service.IApReadBehaviorService;
import com.heima.common.dto.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * APP阅读行为表 前端控制器
 * </p>
 *
 * @author GQ
 * @since 2023-07-17
 */
@RestController
@RequestMapping("/api/v1/read_behavior")
@Api(tags = "APP阅读行为表接口")
@CrossOrigin
public class ApReadBehaviorController {

    @Autowired
    private IApReadBehaviorService apReadBehaviorService;

    /**
     * 保存阅读行为
     * @param dto
     * @return
     */
    @PostMapping
    public ResponseResult savReeadbehavior(@RequestBody ReadBehaviorDto dto) {
        return apReadBehaviorService.savReeadbehavior(dto);
    }


}
